import { createApp } from 'vue'
import router from './router'
import store from './store'
import { loadSvg } from "@/icons"
import directives from './directives'
import logoPlugin from './plugins/logoPlugin'
import App from './App.vue'
import 'uno.css'
import './router/permission'

const app = createApp(App)

// 加载全局 SVG
loadSvg(app)
// 自定义全局指令
app.use(directives)
// 注册ElementPlus的所有图标
app.use(logoPlugin)
app.use(router)
app.use(store)
app.mount('#app')